/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homework6;

/**
 *
 * @author Administrator
 */
import java.util.*;
public class MainJ{
    public static void main(String []args){
        Scanner reader = new Scanner(System.in);
        int n;
        double h,answer = 0;
        h = reader.nextDouble();
        for(int i=0;i<10;i++){
            answer += h;
            h=h/2;
            answer += h;
        }
        System.out.printf("%.4f\n",answer-h);
        System.out.printf("%.7f",h);
    }
}
